package com.fastword.demo.request;

import com.clientAda4j.component.ClientAdaEnvironment;
import com.clientAda4j.domain.ClientAdaCoreProp;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ProfileEnvironment implements ClientAdaEnvironment {
    @Value("${weather.url}")
    private String weatherUrl;

    @Override
    public void env(ClientAdaCoreProp envProp) {
        envProp.setClientUri(weatherUrl);
    }
}